﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;

namespace Strongshell.Recoil.Core.Composition.Parsing.DependencyInjection
{
    public class InstantiationDependencyInjector : DependencyInjectorBase
    {
        public InstantiationDependencyInjector(ObjectConfiguration currentContainer, Type expectedType)
            : base(currentContainer, expectedType)
        {
        }

        public override void Inject(object value)
        {
            ObjectConfiguration.Builder.AddConstructorArg(value);
        }

        public override ObjectConfiguration SelectNestableObjectConfiguration(Type type)
        {
            return base.SelectObjectConfiguration();
        }
    }
}